Skip to main content

executeMethod

Defines the method used to execute certain editor methods using the plugin.

The callback is the result that the method returns. It is an optional parameter. In case it is missing, the {@link Plugin#onMethodReturn window.Asc.plugin.onMethodReturn} function will be used to return the result of the method execution.

Syntax

expression.executeMethod(name, params, callback);

expression - A variable that represents a Plugin class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nameRequiredstringThe name of the specific method that must be executed.
paramsRequiredArrayThe arguments that the method in use has (if it has any).
callbackRequiredfunctionThe result that the method returns.

Returns

boolean